package com.sztz.mapstruct.A性能比较;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * CarMapper
 *
 * @author yyf
 * @email yeyafei@hotmail.com
 */
@Mapper
public interface CarMapper {

    CarMapper INSTANCE = Mappers.getMapper(CarMapper.class);

    /**
     * 简单转换
     *
     * @param car
     * @return CarDto
     */
    CarDTO toDto(Car car);
}
